/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sengoku;

/**
 *
 * @author Ronald
 */
public class Piece
{
    int column;
    int row;
    String name;
    boolean isUpperCase;
    boolean isOccupied;
    boolean isAlpha;
    String letter;
    String solidName;
    
    public Piece()
    {
        name = " [_] ";
    }
    public Piece(String newName, String newSolidName, int newRow, int newColumn, boolean newIsUpperCase, boolean newIsOccupied, boolean newIsAlpha)
    {
        this.row = newRow;
        this.column = newColumn;
        this.isUpperCase = newIsUpperCase;
        this.isOccupied = newIsOccupied;
        this.isAlpha = newIsAlpha;
        this.name = newName;
        this.solidName = newSolidName;
    }
    public String getStateLA()
    {
        isOccupied = true;
        isAlpha = true;
        name = " [a] ";
        return name;
    }
    public String getStateLB()
    {
        isOccupied = true;
        isAlpha = false;
        name = " [b] ";
        return name;
    }
        public String getStateA()
    {
        isOccupied = true;
        isAlpha = true;
        name = " [A] ";
        return name;
    }
    public String getStateB()
    {
        isOccupied = true;
        isAlpha = false;
        name = " [B] ";
        return name;
    }
    public void blankPiece()
    {
        name = " [_] ";
    }
}
